const foo = !!bar;
const foo1 = Boolean(bar);

function qux() {
  return !!bar;
}

foo = bar ? !!baz : !!bat;

Boolean(bar, !!baz);
var foo = !!bar;
function foo() { return !!bar; }
var foo = bar() ? !!baz : !!bat
for(!!foo;;) {}
for(;; !!foo) {}
var foo = Boolean(bar);
function foo() { return Boolean(bar); }
var foo = bar() ? Boolean(baz) : Boolean(bat)
for(Boolean(foo);;) {}
for(;; Boolean(foo)) {}
if (new Boolean(foo)) {}